package com.xt.purchasingsystem.mapper;


import com.xt.purchasingsystem.model.MDesignProcedureModule;

import java.util.List;

public interface MDesignProcedureModuleMapper {
    /**
     * 根据产品工序编号查询此工序所有物料
     * @param procudureId
     * @return
     */
    List<MDesignProcedureModule> getAllByProcudureId(Integer procudureId);

    int deleteByPrimaryKey(Integer id);

    /**
     * 添加产品生产工序物料明细的方法
     * @param record
     * @return
     */
    int insert(MDesignProcedureModule record);

    /**
     * 根据产品生产工序明细编号 删除此所有的产品生产工序物料明细
     * @param id
     * @return
     */
  int  deleteAllMDesignProcedureModuleByDesignProcedureDetailsId(Integer id);

    int insertSelective(MDesignProcedureModule record);


    MDesignProcedureModule selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(MDesignProcedureModule record);

    int updateByPrimaryKey(MDesignProcedureModule record);
}